﻿package system.data;

import java.util.*;

import framework.core.*;

/*
 Author    :Jackey
 CreateTime:2008-03-03 10:43:28
 */
public class CustomerBase extends Table {
    public static final String TABLE_NAME = "T_CUSTOMER";

    private static final String BACKUP_TABLE_NAME = "T_CUSTOMER_BACKUP";

    private static final String BACKUP_SEQ_NAME = "S_CUSTOMER_BACKUP";

    public static final String ID = "ID";

    public static final String CODE = "CODE";

    public static final String SELF_CODE = "SELF_CODE";

    public static final String NAME = "NAME";

    public static final String FULL_NAME = "FULL_NAME";

    public static final String UPPER_CUSTOMER_CODE = "UPPER_CUSTOMER_CODE";

    public static final String ADDRESS = "ADDRESS";

    public static final String CONTACT_PERSON = "CONTACT_PERSON";

    public static final String CONTACT_TEL = "CONTACT_TEL";

    public static final String IS_BALANCE = "IS_BALANCE";

    public static final String IS_DRAW = "IS_DRAW";

    public static final String REMARK = "REMARK";

    public static final String WAREHOUSE_CODE = "WAREHOUSE_CODE";

    public static final String WAREHOUSE_NAME = "WAREHOUSE_NAME";

    public static final String STATUS = "STATUS";

    public static final String CREATE_USER_ID = "CREATE_USER_ID";

    public static final String CREATE_USER = "CREATE_USER";

    public static final String CREATE_TIME = "CREATE_TIME";

    public static final String LAST_UPDATE_USER_ID = "LAST_UPDATE_USER_ID";

    public static final String LAST_UPDATE_USER = "LAST_UPDATE_USER";

    public static final String LAST_UPDATE_TIME = "LAST_UPDATE_TIME";

    public static Vector m_fields = null;

    private String m_id = ""; // 序号

    private String m_code = ""; // 编码

    private String m_self_code = ""; // 自编码

    private String m_name = ""; // 名称

    private String m_full_name = ""; // 全称

    private String m_upper_customer_code = ""; // 上级客户编码

    private String m_address = ""; // 地址

    private String m_contact_person = ""; // 联系人

    private String m_contact_tel = ""; // 联系电话

    private String m_is_balance = ""; // 是否结算单位

    private String m_is_draw = ""; // 是否领料单位

    private String m_remark = ""; // 备注

    private String m_warehouse_code = ""; // 仓库编码

    private String m_warehouse_name = ""; // 仓库名称

    private String m_status = ""; // 是否有效

    private String m_create_user_id = ""; // 创建人序号

    private String m_create_user = ""; // 创建人

    private String m_create_time = ""; // 创建时间

    private String m_last_update_user_id = ""; // 最后修改人序号

    private String m_last_update_user = ""; // 最后修改人

    private String m_last_update_time = ""; // 最后修改时间

    public String getId() {
        return m_id;
    }

    public void setId(String v) {
        if (getId().equals(v))
            return;
        m_id = v;
        markDirty(ID);
    }

    public String getCode() {
        return m_code;
    }

    public void setCode(String v) {
        if (getCode().equals(v))
            return;
        m_code = v;
        markDirty(CODE);
    }

    public String getSelfCode() {
        return m_self_code;
    }

    public void setSelfCode(String v) {
        if (getSelfCode().equals(v))
            return;
        m_self_code = v;
        markDirty(SELF_CODE);
    }

    public String getName() {
        return m_name;
    }

    public void setName(String v) {
        if (getName().equals(v))
            return;
        m_name = v;
        markDirty(NAME);
    }

    public String getFullName() {
        return m_full_name;
    }

    public void setFullName(String v) {
        if (getFullName().equals(v))
            return;
        m_full_name = v;
        markDirty(FULL_NAME);
    }

    public String getUpperCustomerCode() {
        return m_upper_customer_code;
    }

    public void setUpperCustomerCode(String v) {
        if (getUpperCustomerCode().equals(v))
            return;
        m_upper_customer_code = v;
        markDirty(UPPER_CUSTOMER_CODE);
    }

    public String getAddress() {
        return m_address;
    }

    public void setAddress(String v) {
        if (getAddress().equals(v))
            return;
        m_address = v;
        markDirty(ADDRESS);
    }

    public String getContactPerson() {
        return m_contact_person;
    }

    public void setContactPerson(String v) {
        if (getContactPerson().equals(v))
            return;
        m_contact_person = v;
        markDirty(CONTACT_PERSON);
    }

    public String getContactTel() {
        return m_contact_tel;
    }

    public void setContactTel(String v) {
        if (getContactTel().equals(v))
            return;
        m_contact_tel = v;
        markDirty(CONTACT_TEL);
    }

    public String getIsBalance() {
        return m_is_balance;
    }

    public void setIsBalance(String v) {
        if (getIsBalance().equals(v))
            return;
        m_is_balance = v;
        markDirty(IS_BALANCE);
    }

    public String getIsDraw() {
        return m_is_draw;
    }

    public void setIsDraw(String v) {
        if (getIsDraw().equals(v))
            return;
        m_is_draw = v;
        markDirty(IS_DRAW);
    }

    public String getRemark() {
        return m_remark;
    }

    public void setRemark(String v) {
        if (getRemark().equals(v))
            return;
        m_remark = v;
        markDirty(REMARK);
    }

    public String getWarehouseCode() {
        return m_warehouse_code;
    }

    public void setWarehouseCode(String v) {
        if (getWarehouseCode().equals(v))
            return;
        m_warehouse_code = v;
        markDirty(WAREHOUSE_CODE);
    }

    public String getWarehouseName() {
        return m_warehouse_name;
    }

    public void setWarehouseName(String v) {
        if (getWarehouseName().equals(v))
            return;
        m_warehouse_name = v;
        markDirty(WAREHOUSE_NAME);
    }

    public String getStatus() {
        return m_status;
    }

    public void setStatus(String v) {
        if (getStatus().equals(v))
            return;
        m_status = v;
        markDirty(STATUS);
    }

    public String getCreateUserId() {
        return m_create_user_id;
    }

    public void setCreateUserId(String v) {
        if (getCreateUserId().equals(v))
            return;
        m_create_user_id = v;
        markDirty(CREATE_USER_ID);
    }

    public String getCreateUser() {
        return m_create_user;
    }

    public void setCreateUser(String v) {
        if (getCreateUser().equals(v))
            return;
        m_create_user = v;
        markDirty(CREATE_USER);
    }

    public String getCreateTime() {
        return m_create_time;
    }

    public void setCreateTime(String v) {
        if (getCreateTime().equals(v))
            return;
        m_create_time = v;
        markDirty(CREATE_TIME);
    }

    public String getLastUpdateUserId() {
        return m_last_update_user_id;
    }

    public void setLastUpdateUserId(String v) {
        if (getLastUpdateUserId().equals(v))
            return;
        m_last_update_user_id = v;
        markDirty(LAST_UPDATE_USER_ID);
    }

    public String getLastUpdateUser() {
        return m_last_update_user;
    }

    public void setLastUpdateUser(String v) {
        if (getLastUpdateUser().equals(v))
            return;
        m_last_update_user = v;
        markDirty(LAST_UPDATE_USER);
    }

    public String getLastUpdateTime() {
        return m_last_update_time;
    }

    public void setLastUpdateTime(String v) {
        if (getLastUpdateTime().equals(v))
            return;
        m_last_update_time = v;
        markDirty(LAST_UPDATE_TIME);
    }

    public String viewId(DBConnection con) throws Exception {
        return Value.view(getId());
    }

    public String viewCode(DBConnection con) throws Exception {
        return Value.view(getCode());
    }

    public String viewSelfCode(DBConnection con) throws Exception {
        return Value.view(getSelfCode());
    }

    public String viewName(DBConnection con) throws Exception {
        return Value.view(getName());
    }

    public String viewFullName(DBConnection con) throws Exception {
        return Value.view(getFullName());
    }

    public String viewUpperCustomerCode(DBConnection con) throws Exception {
        return Value.view(getUpperCustomerCode());
    }

    public String viewAddress(DBConnection con) throws Exception {
        return Value.view(getAddress());
    }

    public String viewContactPerson(DBConnection con) throws Exception {
        return Value.view(getContactPerson());
    }

    public String viewContactTel(DBConnection con) throws Exception {
        return Value.view(getContactTel());
    }

    public String viewIsBalance(DBConnection con) throws Exception {
        return Value.view(getIsBalance());
    }

    public String viewIsDraw(DBConnection con) throws Exception {
        return Value.view(getIsDraw());
    }

    public String viewRemark(DBConnection con) throws Exception {
        return Value.view(getRemark());
    }

    public String viewWarehouseCode(DBConnection con) throws Exception {
        return Value.view(getWarehouseCode());
    }

    public String viewWarehouseName(DBConnection con) throws Exception {
        return Value.view(getWarehouseName());
    }

    public String viewStatus(DBConnection con) throws Exception {
        return Value.view(getStatus());
    }

    public String viewCreateUserId(DBConnection con) throws Exception {
        return Value.view(getCreateUserId());
    }

    public String viewCreateUser(DBConnection con) throws Exception {
        return Value.view(getCreateUser());
    }

    public String viewCreateTime(DBConnection con) throws Exception {
        return Value.view(getCreateTime());
    }

    public String viewLastUpdateUserId(DBConnection con) throws Exception {
        return Value.view(getLastUpdateUserId());
    }

    public String viewLastUpdateUser(DBConnection con) throws Exception {
        return Value.view(getLastUpdateUser());
    }

    public String viewLastUpdateTime(DBConnection con) throws Exception {
        return Value.view(getLastUpdateTime());
    }

    protected CustomerBase() {
    }

    public void fill(CustomerPageData pageData) throws Exception {

        if (pageData.getId() != null) {
            setId(pageData.getId());
        }

        if (pageData.getCode() != null) {
            setCode(pageData.getCode());
        }

        if (pageData.getSelfCode() != null) {
            setSelfCode(pageData.getSelfCode());
        }

        if (pageData.getName() != null) {
            setName(pageData.getName());
        }

        if (pageData.getFullName() != null) {
            setFullName(pageData.getFullName());
        }

        if (pageData.getUpperCustomerCode() != null) {
            setUpperCustomerCode(pageData.getUpperCustomerCode());
        }

        if (pageData.getAddress() != null) {
            setAddress(pageData.getAddress());
        }

        if (pageData.getContactPerson() != null) {
            setContactPerson(pageData.getContactPerson());
        }

        if (pageData.getContactTel() != null) {
            setContactTel(pageData.getContactTel());
        }

        if (pageData.getIsBalance() != null) {
            setIsBalance(pageData.getIsBalance());
        }

        if (pageData.getIsDraw() != null) {
            setIsDraw(pageData.getIsDraw());
        }

        if (pageData.getRemark() != null) {
            setRemark(pageData.getRemark());
        }

        if (pageData.getWarehouseCode() != null) {
            setWarehouseCode(pageData.getWarehouseCode());
        }

        if (pageData.getWarehouseName() != null) {
            setWarehouseName(pageData.getWarehouseName());
        }

        if (pageData.getStatus() != null) {
            setStatus(pageData.getStatus());
        }

        if (pageData.getCreateUserId() != null) {
            setCreateUserId(pageData.getCreateUserId());
        }

        if (pageData.getCreateUser() != null) {
            setCreateUser(pageData.getCreateUser());
        }

        if (pageData.getCreateTime() != null) {
            setCreateTime(pageData.getCreateTime());
        }

        if (pageData.getLastUpdateUserId() != null) {
            setLastUpdateUserId(pageData.getLastUpdateUserId());
        }

        if (pageData.getLastUpdateUser() != null) {
            setLastUpdateUser(pageData.getLastUpdateUser());
        }

        if (pageData.getLastUpdateTime() != null) {
            setLastUpdateTime(pageData.getLastUpdateTime());
        }

    }

    public String getTableName() {
        return TABLE_NAME;
    }

    public String getBackupTableName() {
        return BACKUP_TABLE_NAME;
    }

    public String getBackupSeqName() {
        return BACKUP_SEQ_NAME;
    }

    public java.util.Vector getFields() {
        if (m_fields == null) {
            m_fields = new Vector();

            m_fields.add(new Field(ID, Value.TYPE_STRING, true, true, 32, "序号"));

            m_fields.add(new Field(CODE, Value.TYPE_STRING, false, true, 20, "编码"));

            m_fields.add(new Field(SELF_CODE, Value.TYPE_STRING, false, false, 20, "自编码"));

            m_fields.add(new Field(NAME, Value.TYPE_STRING, false, true, 50, "名称"));

            m_fields.add(new Field(FULL_NAME, Value.TYPE_STRING, false, false, 200, "全称"));

            m_fields.add(new Field(UPPER_CUSTOMER_CODE, Value.TYPE_STRING, false, false, 20, "上级客户编码"));

            m_fields.add(new Field(ADDRESS, Value.TYPE_STRING, false, false, 500, "地址"));

            m_fields.add(new Field(CONTACT_PERSON, Value.TYPE_STRING, false, false, 20, "联系人"));

            m_fields.add(new Field(CONTACT_TEL, Value.TYPE_STRING, false, false, 20, "联系电话"));

            m_fields.add(new Field(IS_BALANCE, Value.TYPE_STRING, false, true, 1, "是否结算单位"));

            m_fields.add(new Field(IS_DRAW, Value.TYPE_STRING, false, true, 1, "是否领料单位"));

            m_fields.add(new Field(REMARK, Value.TYPE_STRING, false, false, 500, "备注"));

            m_fields.add(new Field(WAREHOUSE_CODE, Value.TYPE_STRING, false, false, 20, "仓库编码"));

            m_fields.add(new Field(WAREHOUSE_NAME, Value.TYPE_STRING, false, false, 50, "仓库名称"));

            m_fields.add(new Field(STATUS, Value.TYPE_STRING, false, true, 1, "是否有效"));

            m_fields.add(new Field(CREATE_USER_ID, Value.TYPE_STRING, false, true, 32, "创建人序号"));

            m_fields.add(new Field(CREATE_USER, Value.TYPE_STRING, false, true, 50, "创建人"));

            m_fields.add(new Field(CREATE_TIME, Value.TYPE_STRING, false, true, 20, "创建时间"));

            m_fields.add(new Field(LAST_UPDATE_USER_ID, Value.TYPE_STRING, false, true, 32, "最后修改人序号"));

            m_fields.add(new Field(LAST_UPDATE_USER, Value.TYPE_STRING, false, true, 50, "最后修改人"));

            m_fields.add(new Field(LAST_UPDATE_TIME, Value.TYPE_STRING, false, true, 20, "最后修改时间"));

        }
        return m_fields;
    }

    public void initObject(java.sql.ResultSet rs) throws Exception {

        m_id = getString(rs, ID);

        m_code = getString(rs, CODE);

        m_self_code = getString(rs, SELF_CODE);

        m_name = getString(rs, NAME);

        m_full_name = getString(rs, FULL_NAME);

        m_upper_customer_code = getString(rs, UPPER_CUSTOMER_CODE);

        m_address = getString(rs, ADDRESS);

        m_contact_person = getString(rs, CONTACT_PERSON);

        m_contact_tel = getString(rs, CONTACT_TEL);

        m_is_balance = getString(rs, IS_BALANCE);

        m_is_draw = getString(rs, IS_DRAW);

        m_remark = getString(rs, REMARK);

        m_warehouse_code = getString(rs, WAREHOUSE_CODE);

        m_warehouse_name = getString(rs, WAREHOUSE_NAME);

        m_status = getString(rs, STATUS);

        m_create_user_id = getString(rs, CREATE_USER_ID);

        m_create_user = getString(rs, CREATE_USER);

        m_create_time = getString(rs, CREATE_TIME);

        m_last_update_user_id = getString(rs, LAST_UPDATE_USER_ID);

        m_last_update_user = getString(rs, LAST_UPDATE_USER);

        m_last_update_time = getString(rs, LAST_UPDATE_TIME);

        ms_new_flag = ConstDefine.NO;
    }

    public Value get(String f) {

        if (f.equalsIgnoreCase(ID)) {
            return new Value(getId());
        }

        if (f.equalsIgnoreCase(CODE)) {
            return new Value(getCode());
        }

        if (f.equalsIgnoreCase(SELF_CODE)) {
            return new Value(getSelfCode());
        }

        if (f.equalsIgnoreCase(NAME)) {
            return new Value(getName());
        }

        if (f.equalsIgnoreCase(FULL_NAME)) {
            return new Value(getFullName());
        }

        if (f.equalsIgnoreCase(UPPER_CUSTOMER_CODE)) {
            return new Value(getUpperCustomerCode());
        }

        if (f.equalsIgnoreCase(ADDRESS)) {
            return new Value(getAddress());
        }

        if (f.equalsIgnoreCase(CONTACT_PERSON)) {
            return new Value(getContactPerson());
        }

        if (f.equalsIgnoreCase(CONTACT_TEL)) {
            return new Value(getContactTel());
        }

        if (f.equalsIgnoreCase(IS_BALANCE)) {
            return new Value(getIsBalance());
        }

        if (f.equalsIgnoreCase(IS_DRAW)) {
            return new Value(getIsDraw());
        }

        if (f.equalsIgnoreCase(REMARK)) {
            return new Value(getRemark());
        }

        if (f.equalsIgnoreCase(WAREHOUSE_CODE)) {
            return new Value(getWarehouseCode());
        }

        if (f.equalsIgnoreCase(WAREHOUSE_NAME)) {
            return new Value(getWarehouseName());
        }

        if (f.equalsIgnoreCase(STATUS)) {
            return new Value(getStatus());
        }

        if (f.equalsIgnoreCase(CREATE_USER_ID)) {
            return new Value(getCreateUserId());
        }

        if (f.equalsIgnoreCase(CREATE_USER)) {
            return new Value(getCreateUser());
        }

        if (f.equalsIgnoreCase(CREATE_TIME)) {
            return new Value(getCreateTime());
        }

        if (f.equalsIgnoreCase(LAST_UPDATE_USER_ID)) {
            return new Value(getLastUpdateUserId());
        }

        if (f.equalsIgnoreCase(LAST_UPDATE_USER)) {
            return new Value(getLastUpdateUser());
        }

        if (f.equalsIgnoreCase(LAST_UPDATE_TIME)) {
            return new Value(getLastUpdateTime());
        }

        return null;
    }

    public void set(String f, Value v) throws Exception {

        if (f.equalsIgnoreCase(ID)) {
            setId(v.getString());
        }

        if (f.equalsIgnoreCase(CODE)) {
            setCode(v.getString());
        }

        if (f.equalsIgnoreCase(SELF_CODE)) {
            setSelfCode(v.getString());
        }

        if (f.equalsIgnoreCase(NAME)) {
            setName(v.getString());
        }

        if (f.equalsIgnoreCase(FULL_NAME)) {
            setFullName(v.getString());
        }

        if (f.equalsIgnoreCase(UPPER_CUSTOMER_CODE)) {
            setUpperCustomerCode(v.getString());
        }

        if (f.equalsIgnoreCase(ADDRESS)) {
            setAddress(v.getString());
        }

        if (f.equalsIgnoreCase(CONTACT_PERSON)) {
            setContactPerson(v.getString());
        }

        if (f.equalsIgnoreCase(CONTACT_TEL)) {
            setContactTel(v.getString());
        }

        if (f.equalsIgnoreCase(IS_BALANCE)) {
            setIsBalance(v.getString());
        }

        if (f.equalsIgnoreCase(IS_DRAW)) {
            setIsDraw(v.getString());
        }

        if (f.equalsIgnoreCase(REMARK)) {
            setRemark(v.getString());
        }

        if (f.equalsIgnoreCase(WAREHOUSE_CODE)) {
            setWarehouseCode(v.getString());
        }

        if (f.equalsIgnoreCase(WAREHOUSE_NAME)) {
            setWarehouseName(v.getString());
        }

        if (f.equalsIgnoreCase(STATUS)) {
            setStatus(v.getString());
        }

        if (f.equalsIgnoreCase(CREATE_USER_ID)) {
            setCreateUserId(v.getString());
        }

        if (f.equalsIgnoreCase(CREATE_USER)) {
            setCreateUser(v.getString());
        }

        if (f.equalsIgnoreCase(CREATE_TIME)) {
            setCreateTime(v.getString());
        }

        if (f.equalsIgnoreCase(LAST_UPDATE_USER_ID)) {
            setLastUpdateUserId(v.getString());
        }

        if (f.equalsIgnoreCase(LAST_UPDATE_USER)) {
            setLastUpdateUser(v.getString());
        }

        if (f.equalsIgnoreCase(LAST_UPDATE_TIME)) {
            setLastUpdateTime(v.getString());
        }

    }

    public String toString() {
        String msg = "Customer=\n";
        msg += "(\r\n";

        msg += "    序号(id)=" + get("id") + "\r\n";

        msg += "    编码(code)=" + get("code") + "\r\n";

        msg += "    自编码(self_code)=" + get("self_code") + "\r\n";

        msg += "    名称(name)=" + get("name") + "\r\n";

        msg += "    全称(full_name)=" + get("full_name") + "\r\n";

        msg += "    上级客户编码(upper_customer_code)=" + get("upper_customer_code") + "\r\n";

        msg += "    地址(address)=" + get("address") + "\r\n";

        msg += "    联系人(contact_person)=" + get("contact_person") + "\r\n";

        msg += "    联系电话(contact_tel)=" + get("contact_tel") + "\r\n";

        msg += "    是否结算单位(is_balance)=" + get("is_balance") + "\r\n";

        msg += "    是否领料单位(is_draw)=" + get("is_draw") + "\r\n";

        msg += "    备注(remark)=" + get("remark") + "\r\n";

        msg += "    仓库编码(warehouse_code)=" + get("warehouse_code") + "\r\n";

        msg += "    仓库名称(warehouse_name)=" + get("warehouse_name") + "\r\n";

        msg += "    是否有效(status)=" + get("status") + "\r\n";

        msg += "    创建人序号(create_user_id)=" + get("create_user_id") + "\r\n";

        msg += "    创建人(create_user)=" + get("create_user") + "\r\n";

        msg += "    创建时间(create_time)=" + get("create_time") + "\r\n";

        msg += "    最后修改人序号(last_update_user_id)=" + get("last_update_user_id") + "\r\n";

        msg += "    最后修改人(last_update_user)=" + get("last_update_user") + "\r\n";

        msg += "    最后修改时间(last_update_time)=" + get("last_update_time") + "\r\n";

        msg += ")\r\n";
        return msg;
    }

    public void copyBase(CustomerBase srcObj) {

        setId(srcObj.getId());

        setSelfCode(srcObj.getSelfCode());

        setName(srcObj.getName());

        setFullName(srcObj.getFullName());

        setUpperCustomerCode(srcObj.getUpperCustomerCode());

        setAddress(srcObj.getAddress());

        setContactPerson(srcObj.getContactPerson());

        setContactTel(srcObj.getContactTel());

        setIsBalance(srcObj.getIsBalance());

        setIsDraw(srcObj.getIsDraw());

        setRemark(srcObj.getRemark());

        setWarehouseCode(srcObj.getWarehouseCode());

        setWarehouseName(srcObj.getWarehouseName());

        setStatus(srcObj.getStatus());

        setCreateUserId(srcObj.getCreateUserId());

        setCreateUser(srcObj.getCreateUser());

        setCreateTime(srcObj.getCreateTime());

        setLastUpdateUserId(srcObj.getLastUpdateUserId());

        setLastUpdateUser(srcObj.getLastUpdateUser());

        setLastUpdateTime(srcObj.getLastUpdateTime());

    }

    public String toXml() throws Exception {
        String xml = "";
        xml += "<Customer>";

        xml += "<Id>" + Value.view(getId()) + "</Id>";

        xml += "<Code>" + Value.view(getCode()) + "</Code>";

        xml += "<SelfCode>" + Value.view(getSelfCode()) + "</SelfCode>";

        xml += "<Name>" + Value.view(getName()) + "</Name>";

        xml += "<FullName>" + Value.view(getFullName()) + "</FullName>";

        xml += "<UpperCustomerCode>" + Value.view(getUpperCustomerCode()) + "</UpperCustomerCode>";

        xml += "<Address>" + Value.view(getAddress()) + "</Address>";

        xml += "<ContactPerson>" + Value.view(getContactPerson()) + "</ContactPerson>";

        xml += "<ContactTel>" + Value.view(getContactTel()) + "</ContactTel>";

        xml += "<IsBalance>" + Value.view(getIsBalance()) + "</IsBalance>";

        xml += "<IsDraw>" + Value.view(getIsDraw()) + "</IsDraw>";

        xml += "<Remark>" + Value.view(getRemark()) + "</Remark>";

        xml += "<WarehouseCode>" + Value.view(getWarehouseCode()) + "</WarehouseCode>";

        xml += "<WarehouseName>" + Value.view(getWarehouseName()) + "</WarehouseName>";

        xml += "<Status>" + Value.view(getStatus()) + "</Status>";

        xml += "<CreateUserId>" + Value.view(getCreateUserId()) + "</CreateUserId>";

        xml += "<CreateUser>" + Value.view(getCreateUser()) + "</CreateUser>";

        xml += "<CreateTime>" + Value.view(getCreateTime()) + "</CreateTime>";

        xml += "<LastUpdateUserId>" + Value.view(getLastUpdateUserId()) + "</LastUpdateUserId>";

        xml += "<LastUpdateUser>" + Value.view(getLastUpdateUser()) + "</LastUpdateUser>";

        xml += "<LastUpdateTime>" + Value.view(getLastUpdateTime()) + "</LastUpdateTime>";

        xml += "</Customer>";
        return xml;
    }

}
